﻿using System;
using System.Collections.Generic;
using QLTH_DTO;
using QLTH_DATASSECC;
using System.Data;
namespace QLTH_BUSINESS
{
  public class clsGIaoVienBU 
    {
      private readonly clsGiaoVienDA gvDA;
      public clsGIaoVienBU()
      {
          gvDA = new clsGiaoVienDA();
      }
      public string macuoi()
      {
          return gvDA.macuoi();
      }

      public DataTable DanhSachGiaoVienExcel()
      {
          return gvDA.DanhSachGiaoVienExcel();
      }

      public void mo_excel(String _filename)
      {
          gvDA.mo_excel(_filename);
      }

      public DataTable DanhSachGiaoVien()
      {
          return gvDA.DanhSachGiaoVien();
      }

      public DataTable DanhSachGiaoVienDK(string dk)
      { 
        return gvDA.DanhSachGiaoVienTheoDK(dk);
      }

      public DataTable Lay_GV_theoma(String _magv)
      {
          return gvDA.lay_GV_theoma(_magv);
      }
      public int Them_giaovien(clsGiaoVienDTO gv)
      {
          return gvDA.Them_giaovien(gv);
      }
      public int Capnhat_giaovien(clsGiaoVienDTO gv)
      {
          return gvDA.Capnhat_giaovien(gv);
      }
      public int Xoa_giaovien(clsGiaoVienDTO gv)
      {
        return gvDA.Xoa_giaovien(gv);
      }

      public DataTable LoadGV_Hoten(String _dk)
      {
          return gvDA.LoadGV_HoTen(_dk);
      }
    }
}
